import {BaseService} from "@/script/api/BaseService";

const PATHS = {
    QUERY_INCOME_CURVE: '/query-room-income-curve'
}

export class QueryCurveService extends BaseService {
    constructor() {
        super('http://localhost:30601/fms/income-curve');
    }

    async queryRoomIncomeCurve(param) {
        try {
            return await this._sendRequest(PATHS.QUERY_INCOME_CURVE, param);
        } catch (e) {
            console.error(e.message);
            return null;
        }
    }
}